<!DOCTYPE html>
<html>
{{>commonContest/header}}
{{{block 'css'}}}
</head>
<body class="bg-dark dk">
<div class="bg-dark dk" id="wrap">
    <div id="top">
        {{>commonContest/navbar}}
        {{>commonContest/top_head}}
    </div>
    <!-- /#top -->
    {{>commonContest/left}}

    {{{body}}}
    <div id="right" class="bg-light lter">
        <div class="alert alert-danger">
            <button type="button" class="close" data-dismiss="alert">&times;</button>
            <strong>Warning!</strong> Best check yo self, you're not looking too good.
        </div>

        <!-- .well well-small -->
        <div class="well well-small dark">
            <ul class="list-unstyled">
                <li>Visitor <span class="inlinesparkline pull-right">1,4,4,7,5,9,10</span>
                </li>
                <li>Online Visitor <span class="dynamicsparkline pull-right">Loading..</span>
                </li>
                <li>Popularity <span class="dynamicbar pull-right">Loading..</span>
                </li>
                <li>New Users <span class="inlinebar pull-right">1,3,4,5,3,5</span>
                </li>
            </ul>
        </div>
        <!-- /.well well-small -->

        <!-- .well well-small -->
        <div class="well well-small dark">
            <button class="btn btn-block">Default</button>
            <button class="btn btn-primary btn-block">Primary</button>
            <button class="btn btn-info btn-block">Info</button>
            <button class="btn btn-success btn-block">Success</button>
            <button class="btn btn-danger btn-block">Danger</button>
            <button class="btn btn-warning btn-block">Warning</button>
            <button class="btn btn-inverse btn-block">Inverse</button>
            <button class="btn btn-metis-1 btn-block">btn-metis-1</button>
            <button class="btn btn-metis-2 btn-block">btn-metis-2</button>
            <button class="btn btn-metis-3 btn-block">btn-metis-3</button>
            <button class="btn btn-metis-4 btn-block">btn-metis-4</button>
            <button class="btn btn-metis-5 btn-block">btn-metis-5</button>
            <button class="btn btn-metis-6 btn-block">btn-metis-6</button>
        </div>
        <!-- /.well well-small -->

        <!-- .well well-small -->
        <div class="well well-small dark">
            <span>Default</span> <span class="pull-right"><small>20%</small> </span>

            <div class="progress xs">
                <div class="progress-bar progress-bar-info" style="width: 20%"></div>
            </div>
            <span>Success</span> <span class="pull-right"><small>40%</small> </span>

            <div class="progress xs">
                <div class="progress-bar progress-bar-success" style="width: 40%"></div>
            </div>
            <span>warning</span> <span class="pull-right"><small>60%</small> </span>

            <div class="progress xs">
                <div class="progress-bar progress-bar-warning" style="width: 60%"></div>
            </div>
            <span>Danger</span> <span class="pull-right"><small>80%</small> </span>

            <div class="progress xs">
                <div class="progress-bar progress-bar-danger" style="width: 80%"></div>
            </div>
        </div>
    </div>
    <!-- /#right -->
</div><!-- /#wrap -->
<footer class="Footer bg-dark dker">
    <p>2017 &copy; 500px.me</p>
</footer><!-- /#footer -->

<!-- #helpModal -->
<div id="helpModal" class="modal fade">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">Modal title</h4>
            </div>
            <div class="modal-body">
                <p>
                    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore
                    et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
                    aliquip ex ea commodo consequat. Duis aute irure dolor
                    in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
                    occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
                </p>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div><!-- /.modal --><!-- /#helpModal -->
<!-- system modal start -->
<div id="confim" class="modal fade">
    <div class="modal-dialog modal-sm">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
                <h5 class="modal-title"><i class="fa fa-exclamation-circle"></i>提示</h5>
            </div>
            <div class="modal-body small">
                <p>是否确认？</p>
            </div>
            <div class="modal-footer" >
                <button type="button" class="btn btn-primary ok" data-dismiss="modal">确定</button>
                <button type="button" class="btn btn-default cancel" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>
<!-- system modal end -->
<script src="http://static.contest.500px.me/contest_public/js/metisMenu.min.js"></script>
<script src="http://static.contest.500px.me/contest_public/assets/js/core.js"></script>
<script>
    $('.icon-repeat').click(function(){
        $.ajax({
            type : "post",
            // 提交的网址
            url : '/users/restartTest',
            // 提交的数据
            dataType : "json",
            success : function(data) {
                if(data.code == 200){
                    alert('正在重启');
                    location.reload(true);
                }else{
                    alert('重启失败！')
                }
            },
            error : function(e) {
                sjApp.errorMsg(e);
            }
        });
    });
</script>
{{{block 'scripts'}}}
</body>
</html>
